# Copyright (C) 2007 RobotCub Consortium
# Author: Jonas Ruesch
# CopyPolicy: Released under the terms of the GNU GPL v2.0.

project(camCalibWithPose)

find_package(YARP COMPONENTS os sig math cv)

set(folder_source src/main.cpp
                  src/spherical_projection.cpp
                  src/CamCalibModule.cpp
                  src/CalibToolFactory.cpp
                  src/PinholeCalibTool.cpp
                  src/SphericalCalibTool.cpp)
                             
set(folder_header include/iCub/spherical_projection.h
                  include/iCub/CamCalibModule.h
                  include/iCub/CalibToolFactory.h
                  include/iCub/ICalibTool.h
                  include/iCub/PinholeCalibTool.h
                  include/iCub/SphericalCalibTool.h)

include_directories(${PROJECT_SOURCE_DIR}/include)
add_executable(${PROJECT_NAME} ${folder_source} ${folder_header})
target_compile_definitions(${PROJECT_NAME} PRIVATE _USE_MATH_DEFINES)
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBRARIES} ${YARP_LIBRARIES})
install(TARGETS ${PROJECT_NAME} DESTINATION bin)

